package com.efast.dmom.equipment.service.masterdata.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.efast.dmom.equipment.dao.masterdata.EquipMasterDataDao;
import com.efast.dmom.equipment.service.masterdata.IEquipMasterDataService;

@Service
public class EquipMasterDataServiceImpl implements IEquipMasterDataService {

	@Autowired
	private EquipMasterDataDao equipMasterDataDao;

	@Override
	public void deleteEquipClassByIds(Integer id) {
		if (id!=null && id>0) {
			equipMasterDataDao.deleteEquipClassByIds(id);
		}

	}

	@Override
	public void deleteEquipCategoryByIds(List<Integer> ids) {
		if (ids.size() > 0) {
			equipMasterDataDao.deleteEquipCategoryByIds(ids);
		}

	}

	@Override
	public void deleteEquipSpareById(List<Integer> ids) {
		if (ids.size() > 0) {
			equipMasterDataDao.deleteEquipSpareByIds(ids);
		}

	}

	@Override
	public void deleteEquipBaseInfoByIds(List<Integer> ids) {
		if (ids.size() > 0) {
			int row = equipMasterDataDao.deleteEquipBaseInfoByIds(ids);
		}

	}
}
